/**
 * 
 */
package com.fox.webapp.domain;

import java.util.Date;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.DBRef;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author Yockii
 *
 */
@Document
public class Communicate {

	@Id
	private ObjectId id;
	private String title;
	private String content;
	@DBRef
	private Person applier;
	
	private Boolean replied;
	
	private Date applyTime;
	
	public ObjectId getId() {
		return id;
	}
	public void setId(ObjectId id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Person getApplier() {
		return applier;
	}
	public void setApplier(Person applier) {
		this.applier = applier;
	}
	public Boolean getReplied() {
		return replied;
	}
	public void setReplied(Boolean replied) {
		this.replied = replied;
	}
	public Date getApplyTime() {
		return applyTime;
	}
	public void setApplyTime(Date applyTime) {
		this.applyTime = applyTime;
	}
}
